﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
//
using iPublic;

namespace HRecycle.SysTools
{
    /// <summary>
    /// 登陆系统，海宏软件
    /// 修改记录：
    ///   20171214，zch，创建基本功能
    /// </summary>
    public partial class FrmLogin : Form
    {
        public FrmLogin()
        {
            InitializeComponent();
        }

        private void FrmLogin_Load(object sender, EventArgs e)
        {
            //FormBorderStyle = FormBorderStyle.None;
            showInfo("★★用户登陆★★");
        }

        private void btn_ok_Click(object sender, EventArgs e)
        {
            iDefine.SysConfig.fUserID = "00000";
            DialogResult = DialogResult.OK;
        }

        private void btn_cancel_Click(object sender, EventArgs e)
        {

        }

        public void showInfo(string sInfo, bool lTime = true)
        {
            lbl_info.Text = sInfo;
            iLog.writeLogFile(sInfo);
        }

        private void btn_keyboard_Click(object sender, EventArgs e)
        {
            try
            {
                System.Diagnostics.Process.Start("osk.exe");
            }
            catch (Exception x)
            { iPublicX.showMessage(x.Message); }
        }

        private void btn_handKey_Click(object sender, EventArgs e)
        {
            try
            {
                System.Diagnostics.Process.Start("TabTip.exe");
            }
            catch (Exception x)
            { iPublicX.showMessage(x.Message); }
        }
    }
}
